package com.example.printer2.request;

import android.os.Handler;

import com.example.printer2.common.MyBuildConfig;




public class UserInfoRequest {
    Handler handler=null;
    public UserInfoRequest(Handler handler)
    {
        this.handler=handler;
    }

    public void loginCheck(String username,String password)
    {
        if(username.equals(MyBuildConfig.username)&&password.equals(MyBuildConfig.password))
        {
            handler.sendEmptyMessage(1);
        }
        else
        {
            handler.sendEmptyMessage(-1);
        }
    }
}
